import 'package:json_annotation/json_annotation.dart';
import 'package:yt_devops/model/device_obj/properties_model.dart';
import 'package:yt_devops/model/device_obj/services_model.dart';

part 'device_obj_model.g.dart';

@JsonSerializable()
class DeviceObjModel {
  List<PropertiesModel> properties;

  List<ServicesModel> services;

  dynamic events;

  DeviceObjModel(
      {this.properties = const [], this.services = const [], this.events});

  factory DeviceObjModel.fromJson(Map<String, dynamic> json) =>
      _$DeviceObjModelFromJson(json);

  Map<String, dynamic> toJson() => _$DeviceObjModelToJson(this);
}
